﻿namespace UnityEditor
{
    using System;

    [AttributeUsage(AttributeTargets.Method, AllowMultiple=true)]
    public sealed class MenuItem : Attribute
    {
        public string menuItem;
        public int priority;
        public bool validate;

        public MenuItem(string itemName)
        {
            this.menuItem = itemName;
            this.validate = false;
            this.priority = 0x3e8;
        }

        public MenuItem(string itemName, bool isValidateFunction)
        {
            this.menuItem = itemName;
            this.validate = isValidateFunction;
            this.priority = 0x3e8;
        }

        public MenuItem(string itemName, bool isValidateFunction, int priority)
        {
            this.menuItem = itemName;
            this.validate = isValidateFunction;
            this.priority = priority;
        }
    }
}

